package com.finger.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.finger.common.utils.PageUtils;
import com.finger.gulimall.ware.entity.WareInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * 仓库信息
 *
 * @author finger
 * @email 909128695@qq.com
 * @date 2022-03-16 18:27:01
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据skuId查询出对应的商品是否有库存
     * @param ids
     * @return
     */
    Map<Long, Boolean> getStockForOrderConfirm(List<Long> ids);
}

